//package com.cc.service;
//
//import org.springframework.beans.BeansException;
//import org.springframework.beans.factory.config.BeanDefinition;
//import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
//import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
//import org.springframework.stereotype.Component;
//
///**
// * @title: MyBeanFactoryPostProcessor
// * @author: lbj
// * @date: 2022/5/9 8:28 上午
// * @description: TODO 类描述
// */
//
//@Component
//public class MyBeanFactoryPostProcessor implements BeanFactoryPostProcessor {
//    @Override
//    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
//        //在所有的 BeanDefinition 注册完成后调用
//        for (String beanDefinitionName : beanFactory.getBeanDefinitionNames()) {
//            System.out.println(":: "+beanDefinitionName);
//        }
//        final BeanDefinition userService = beanFactory.getBeanDefinition("userService");
//        userService.setScope("prototype");
//    }
//}
